import { createApp } from "https://unpkg.com/vue@3/dist/vue.esm-browser.js";

const app = createApp({
    data() {
        return {
            empList: [
                {
                    idx: 1,
                    name: "John",
                    gender: 1,
                    age: 30,
                    headimg: "/resource/img/07-vue指令/img1.jpg",
                    job: 1,
                },
                {
                    idx: 2,
                    name: "Mary",
                    gender: 0,
                    age: 25,
                    headimg: "/resource/img/07-vue指令/img2.jpg",
                    job: 2,
                },
                {
                    idx: 3,
                    name: "Tom",
                    gender: 1,
                    age: 35,
                    headimg: "/resource/img/07-vue指令/img3.jpg",
                    job: 3,
                },
                {
                    idx: 4,
                    name: "Jerry",
                    gender: 0,
                    age: 40,
                    headimg: "/resource/img/07-vue指令/img4.jpg",
                    job: 4,
                },
            ],
        };
    },
});

app.mount("#app");
